function tbEditFFTROI_Checked(tb, e)
%TBEDITFFTROI_CHECKED Summary of this function goes here
%   Detailed explanation goes here


    handles= guihandles(tb);
    
    h = uipreview_GetImage;
    ax= get(h, 'parent');
    h_rect= getappdata(h, 'FFTROIHandle');

    setResizable(h_rect, true)
    
    % Specify a position constraint function using makeConstrainToRectFcn 
    % to keep the rectangle inside the original Xlim and Ylim ranges.
    fcn = makeConstrainToRectFcn('imrect', get(ax,'XLim'),get(ax,'YLim'));
    setPositionConstraintFcn(h_rect,fcn); 
    
end

